﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Owin.Hosting;
using System.Net.Http;

namespace Group3.MediaTool.OWIN
{
    /// <summary>
    /// @Version 1.0
    /// @Author Pascal Senjic
    /// @Comment
    ///    WebService handles the Start of the WebService.
    ///    Configurations are set in this class.
    /// </summary>
    public class WebService
    {
        public static IDisposable Start()
        {
            try
            {
                string baseAddress = "http://localhost:9000/"; 
                return WebApp.Start<Startup>(url: baseAddress);
            }
            catch(Exception)
            {
                return null;
            }
        }
    }
}
